package org.bitterorange.flansmodslain.models;

import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;

public class SoldierDeathEvent extends Event {

    private static final HandlerList Handlers = new HandlerList();
    private final EntitySoldierWrapper soldier;
    private final boolean isSuicide;
    private final boolean isIgnoreDeathCheck;

    public boolean isSuicide() {
        return isSuicide;
    }

    public SoldierDeathEvent(EntitySoldierWrapper soldier, boolean isSuicide, boolean isIgnoreDeathCheck) {
        this.soldier = soldier;
        this.isSuicide = isSuicide;
        this.isIgnoreDeathCheck = isIgnoreDeathCheck;
    }

    public static HandlerList getHandlerList() {
        return Handlers;
    }

    @Override
    public HandlerList getHandlers() {
        return Handlers;
    }

    public EntitySoldierWrapper getSoldier() {
        return soldier;
    }

    public boolean isIgnoreDeathCheck() {
        return isIgnoreDeathCheck;
    }
}
